package com.jsbs.iam.ident.constant;

/**
 * 通用常量信息
 * 
 * @author junwc
 */
public class Constants {

    public static final String HEADER_TOKEN = "x-token";

    /**
     * 用户编码
     */
    public static final String USER_CODE = "userCode";

    /**
     * 业务系统用户ID
     */
    public static final String USER_ID = "userId";

    /**
     * 姓名
     */
    public static final String NAME = "name";

    /**
     * 手机号
     */
    public static final String PHONE = "phone";

    /**
     * 邮箱
     */
    public static final String EMAIL = "email";

    /**
     * 归属组织类型编码
     */
    public static final String ORG_TYPE_CODE = "orgTypeCode";

    /**
     * 归属租户
     */
    public static final String COMPANY_CODE = "companyeCode";

    /**
     * 用户类型
     */
    public static final String USER_TYPE = "userType";

    /**
     * 管理员角色编码
     */
    public static final String ADMIN_ROLE_CODE = "x-admin-role-code";

    /**
     * 管理员角色列表
     */
    public static final String ADMIN_ROLE_LIST = "x-admin-role-list";

    /**
     * 管理员用户
     */
    public static final String USER_TYPE_ADMIN = "0";

    /**
     * 普通用户
     */
    public static final String USER_TYPE_NOMAL = "1";

    /**
     * ip地址
     */
    public static final String IP = "ip";

    /**
     * portal取url的key
     */
    public static final String APPLY_URL = "x-app-type";

    /**
     * 判断是否为管理员用户key
     */
    public static final String X_USER_TYPE = "x-user-type";

    public static final String X_REAL_IP = "X-Real-IP";

    public static final String X_FORWARDED_FOR = "X-Forwarded-For";

    public static final String X_APP_TYPE = "x-app-type";

    /**
     * 日志登录
     */
    public static final String LOG_LOGIN = "账号登录";

    /**
     * 日志登出
     */
    public static final String LOG_OUT ="账号登出";

    /**
     * 多设备登录key
     */
    public static final String MULTI_DEVICE ="DEVICE:";

    /**
     * 日志修改
     */
    public static final String LOG_Update ="密码修改";

    /**
     * 超级管理员
     */
    public static final String ADMIN = "admin";
}
